<?php
class BaseAction extends Action {
	public $userid = 0;
	public function _initialize(){
		$this->userid = D('User')->getUserId();
		if(!$this->userid){
			redirect(C('WEB_URL').'admin.php/public/login',1,'请先登录');
		}
		$parse['__U__'] = C('WEB_URL').'admin.php';
		C('TMPL_PARSE_STRING',$parse);
	}
}